<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>OpenLabyrinth</title>
        
        <!-- ** Javascript ** -->
        <!-- jQuery -->
        <script type="text/javascript" src="{% url ol-root %}javascript/jquery/jquery-1.4.2.min.js"></script>
        <!-- jQuery UI -->
		<link type="text/css" href="{% url ol-root %}javascript/jquery/jquery-ui/css/smoothness/jquery-ui-1.8.4.custom.css" rel="stylesheet" />
		<script type="text/javascript" src="{% url ol-root %}javascript/jquery/jquery-ui/js/jquery-ui-1.8.4.custom.min.js"></script>
        <!-- jQuery Plugins-->
		<link type="text/css" href="{% url ol-root %}javascript/jquery/plugins/colorpicker/css/colorpicker.css" rel="stylesheet" />
		<script type="text/javascript" src="{% url ol-root %}javascript/jquery/plugins/colorpicker/js/colorpicker.js"></script>
        <!-- swfobject -->
        <script type="text/javascript" src="{% url ol-root %}javascript/swfobject/swfobject.js"></script>
        <!-- FusionCharts -->
        <script type="text/javascript" src="{% url ol-root %}javascript/fusioncharts/FusionCharts.js"></script>
        
        <!-- open labyrinth data -->
        <script type="text/javascript">
            var siteRoot = '{% url ol-root %}';
            var adminRoot = '{% url ol-adminRoot %}';
            var labyrinthRoot = '{{ labyrinth.get_absolute_url }}';
            var pageInit = false;
            var labyrinthID = '{{ labyrinth.id }}';
            var labyrinthRootNode = '{{ labyrinth.root_node }}';
            var messages = [{% if messages %}'{{ messages|join:"','" }}'{% endif %}];
            {% if user.is_authenticated %}
            var loginStatus = 'Logged in as {{ user.username|safe }}';
            {% else %}
            var loginStatus = '';
            {% endif %}
        </script>
        
        <!-- open labyrinth library -->
        <script type="text/javascript" src="{% url ol-root %}javascript/base.js"></script>
                
        {% block imports %}
        {% endblock %}
        
    </head>
    <body>
    	<div id="bodyBox" name="bodyBox">
        {% block body %}
        {% endblock %}
    	</div>
    </body>
</html>
